package com.git.controller;

import org.springframework.stereotype.Component;

import com.git.service.DemoService;
import com.git.util.SpringContextUtils;

@Component
public class InsertThread implements Runnable{

	@Override
	public void run() {
		DemoService demoService = (DemoService) SpringContextUtils.getBeanByClass(DemoService.class);
		demoService.insert();
	}

}
